<template>
	<view>
		<view class="my-btn" @click="onClick()">
			<button class="button">{{btnText}}</button>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			btnText: {
				type: String
			}
		},
		methods: {
			onClick() {
				this.$emit('btnClick')
			}
		}
	}
</script>

<style lang="scss">
	.my-btn{
		position: fixed;
		bottom: 0;
		text-align: center;
		border-top: 1px solid #FFFFFF;
		height: 80rpx;
		width: 100%;
		background: #FFFFFF;
		margin-top: 114rpx;
		padding: 17rpx;
		.button{
			width:92%;
			margin: 0 4%;
			border-radius:20rpx;
			color: #37C2BC;
			background: #FFFFFF;
			border: 1px solid #37C2BC;
			font-size: 20rpx;
			height: 80rpx;
			line-height: 80rpx;
		}
		.button::after{
			border: none;
		}
	}
</style>
